package com.ajobs.amqp.consumer;

import com.ajobs.amqp.config.SampleExchangeRelConfig;
import com.ajobs.pojo.MsgPojo;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 *Description
 *
 *@author weijianxun
 */
@Component
public class SampleConsummer {

    @RabbitListener(queues = {SampleExchangeRelConfig.QUEUE})
    void consumer(MsgPojo msgPojo) {
        System.out.println(msgPojo);
    }
}
